package com.example.ymm.modules1.service.hl;

import com.alibaba.fastjson.JSONArray;
import com.example.ymm.base.BaseService;
import com.example.ymm.model.TableList;
import com.example.ymm.model.YmPageDto;
import com.example.ymm.modules1.entity.hl.dkn.DknPurchaseOrder;
import com.example.ymm.modules1.query.hl.DknPurchaseOrderQueryCriteria;
import com.example.ymm.modules1.service.dto.dkn.DknEditOrderDto;
import com.example.ymm.modules1.service.dto.heng.DknCreatePurchaseOrderGroupDto;
import com.fasterxml.jackson.databind.JsonNode;

import java.util.List;

public interface DknPurchaseOrderService extends BaseService<DknPurchaseOrder> {

    TableList<DknPurchaseOrder> list(DknPurchaseOrderQueryCriteria criteria, YmPageDto ymPage);

    List<DknPurchaseOrder> queryAll(DknPurchaseOrderQueryCriteria criteria);

    /**
     * 查询待创建的采购单，还没推送到 rangk2的采购单
     * @param criteria
     * @return
     */
    List<DknCreatePurchaseOrderGroupDto> purchaseOrderWaitList(DknPurchaseOrderQueryCriteria criteria);

    /**
     * 查询 迪卡侬 采购下单状态
     */
    void queryDknOrders();

    void orderStatusDknOrders();

    void orderCancel(DknPurchaseOrder order);

    JsonNode orderDetail(DknPurchaseOrder order);

    void orderEdit(DknEditOrderDto dto);


    JSONArray orderItemList(String inquiryCode);

}
